package com.only4play.web.view;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * @author liyuncong
 * @version 1.0
 * @file ArticleController
 * @brief ArticleController
 * @details ArticleController
 * @date 2023-12-14
 *
 * Edit History
 * ----------------------------------------------------------------------------
 * DATE                     NAME               DESCRIPTION
 * 2023-12-14               liyuncong          Created
 */
@Controller
@RequestMapping("/admin/articles")
public class ArticleController {

    @GetMapping("")
    public ModelAndView allArticles() {
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.setViewName("all-articles");
        return modelAndView;
    }
}
